/**
 * @widoc $.transitionHelper
 * @namespace aux
 * @des transition 辅助接口处理
 * @type object
 * @attr {string} transName style 中的 transition 对应的
 * @attr {string} transEndEvent transition 过渡结束后触发的事件名
 */
(function(){
    var PREFIX = (function(){
            var dummyStyle = document.createElement('div').style;
            var vendors = 't,webkitT,MozT,msT,OT'.split(',');
            for(var t, i = 0, l = vendors.length; i < l; i++){
                t = vendors[i] + 'ransform';
                if(t in dummyStyle){
                    return vendors[i].substr(0, vendors[i].length - 1);
                }
            }
            return false;
        })();
    $.transitionHelper = {
        //prefix: PREFIX,
        transName: (function(style){
            if(PREFIX === '') return style;
            style = style.charAt(0).toUpperCase() + style.substr(1);
            return PREFIX + style;
        })('transition'),
        transEndEvent: (function(){
            if(PREFIX == 'webkit' || PREFIX === 'O'){
                return PREFIX.toLowerCase() + 'TransitionEnd';
            }
            return 'transitionend';
        }())
    };
})();